package com.xjscrm.server.mapper;

import com.xjscrm.common.entity.TaskTagKeywordDevice;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface TaskTagKeywordDeviceMapper {
    int deleteById(Long id);

    int insert(TaskTagKeywordDevice record);

    int insertSelective(TaskTagKeywordDevice record);

    TaskTagKeywordDevice selectById(Long id);

    List<TaskTagKeywordDevice> selectByDeviceUniquIdAndTriggerType(@Param("deviceUniqueId") Long deviceUniqueId, @Param("triggerType") String triggerType);

    int updateByIdSelective(TaskTagKeywordDevice record);

    int updateById(TaskTagKeywordDevice record);
}